#ifndef Enemy_h
#define Enemy_h

#include <osg/PolygonOffset>

#include "Player.h"
#include "Character.h"

#define FIELD 1.57
#define RANGE 5.0

class Enemy : public Character {

public:
	Enemy(lua_State* L) : Character(L), m_dfieldOfVision(FIELD), m_drange(RANGE) {};
	~Enemy() {};

	void update();

	int load(lua_State* L);
	int spot(lua_State* L);

private:
	double m_dfieldOfVision;
	double m_drange;

	friend class Lunar<Enemy>;
	static const char className[];
	static Lunar<Enemy>::RegType methods[];

};

#endif // Enemy_h
